import java.util.Scanner;

public class ArrayNameAndId {
    public static void main(String[] args){
        inputNameAndId();
    }
    public static void inputNameAndId(){
        int value=20,change=0;
        int str_size=50;
        int id[]=new int[value];
        String name[]=new String[str_size];

        System.out.println("开始登记：");
        Scanner reader=new Scanner(System.in);
        while (change<value){
            System.out.println("请输入学号：");
            id[str_size]= reader.nextInt();
            System.out.println("请输入姓名：");
            name[str_size]=reader.next();
            change++;
        }

    }
}
